package main

import (
	"fmt"
	"os"
	"strings"
	"time"
)

func main() {
	start := time.Now()
	for idx, arg := range os.Args[1:] {
		fmt.Println("index:", idx, "arg:", arg)
	}
	fmt.Printf("for loop %dus elapsed\n", time.Since(start).Microseconds())

	start = time.Now()
	fmt.Println(strings.Join(os.Args[1:], " "))
	fmt.Printf("string join %dus elapsed\n", time.Since(start).Microseconds())
}
